package com.dlc.shop.user.common.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dlc.shop.user.common.model.PopupUserLog;
import com.dlc.shop.user.common.vo.CostPerPopupVO;

import java.util.List;

/**
 * @author TRACK
 */
public interface PopupUserLogService extends IService<PopupUserLog> {

    /**
     * 保存弹窗日志
     * @param log
     */
    void insert(PopupUserLog log);

    /**
     * 删除弹窗广告记录
     * @param popupId
     */
    void removeByPopupId(Long popupId);

    /**
     * 根据条件获取
     * @param userId
     * @param uuid
     * @param costPerPopup
     * @return
     */
    List<PopupUserLog> getByCondition(String userId, String uuid, CostPerPopupVO costPerPopup);
}
